package com.learning.security.service;

import com.learning.security.dal.dataobject.AdminRoleRightDO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 角色和权限点关联表 服务类
 * </p>
 *
 * @author xxx
 * @since 2024-10-04
 */
public interface AdminRoleRightService extends IService<AdminRoleRightDO> {

    boolean assignRight(Long roleId, Long rightId);

    List<AdminRoleRightDO> getRoleRightByRightId(Long rightId);
}
